<template>
<div>
  <p>学校名字：<input type="text" v-model="form.name"></p>
  <button @click="add">添加</button>
</div>
</template>

<script>
export default {
  name: "Aa_school",
  data(){
    return{
      form:{},
    }
  },
  methods:{
    add(){
      this.$axios.post('users/school/',this.form)
        .then(res=>{
          if(res.data.code==200){
            alert('添加成功')
          }
        })
    }
  }
}
</script>

<style scoped>

</style>
